﻿using BizControl.Presentation.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions;
using System.ComponentModel.Composition;
using BizControl.Presentation.Infrastructure.Constants;
using Microsoft.Practices.Prism.Commands;
using System.Windows.Input;
using System;

namespace BizControl.Presentation.AboutModule.ViewModels
{
  [Export]
  public class AboutViewModel : INavigationAware, IRegionMemberLifetime
  {
    #region Properties

    public string BizControlVersion
    {
      get
      {
        return BizControl.Library.Version.BizControlVersion;
      }
    }

    public string BizControlAuthors
    {
      get
      {
        return BizControl.Library.Version.BizControlAuthors;
      }
    }

    #endregion

    #region INavigationAware Members

    public bool IsNavigationTarget(NavigationContext navigationContext)
    {
      return true;
    }

    public void OnNavigatedFrom(NavigationContext navigationContext)
    {
    }

    public void OnNavigatedTo(NavigationContext navigationContext)
    {
    }

    #endregion

    #region IRegionMemberLifetime Members

    public bool KeepAlive
    {
      get { return true; }
    }

    #endregion
  }
}
